<?php
defined('SYS_IN') OR die('error');
/**
 * 视图类
 **/
class view extends smarty{

	 /**
	  *配置smatry
	  **/
	 public function __construct() {
		$this->template_dir = VIEW_DIR.VIEW_STYLE.'/';
		$this->compile_dir	= VIEW_DIR.'smatry/templates_c/';
		$this->config_dir	= VIEW_DIR.'smatry/configs/';
		$this->cache_dir	= VIEW_DIR.'smatry/cache/';
		$this->caching		= false;
	 }

	 /**
	  * 重构display
	  **/
	  public function display($template, $cache_id = null, $compile_id = null, $parent = null){
		$template = $template.'.php';
		parent::display($template, $cache_id = null, $compile_id = null, $parent = null);
	  }
}
?>